package com.management.service.impl;

import com.management.mapper.StudentMapper;
import com.management.po.Student;
import com.management.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public int saveStudent(Student student){
        return studentMapper.saveStudent(student);
    }

    @Override
    public Student getStudentById(String studentId){
        return studentMapper.getStudentById(studentId);
    }

    @Override
    public int deleteStudentById(String studentId){
        return studentMapper.deleteStudentById(studentId);
    }
}
